#ifndef __BASESPRITE_H__
#define  __BASESPRITE_H__

#include "cocos2d.h"
#include "GameConstants.h"

class BaseSprite:public cocos2d::CCSprite
{

protected:
	cocos2d::CCDictionary * actionCache;
	
public:
	SpriteAction currentAction;
	SpriteTag spriteTag;

	BaseSprite(void);
	~BaseSprite(void);
	CREATE_FUNC(BaseSprite);

	void InitFrameSet( int startFrameIndex, int frameCount, char *frameFormat, const char *plistFile,SpriteAction action);
	void SetCurrentAction(SpriteAction action);
	void SetCurrentAction(SpriteAction action,cocos2d::CCCallFuncN * callback);
	virtual void draw();

};


#endif

